<%@page language="java" contentType="text/html; charset=UTF-8" %>
<%@page import="btsm.bean.sysPro"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<%String titlename="登录页背景设置";%>
<HTML>
<HEAD>
<TITLE><%=titlename%></TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="Admin_Style.css" type=text/css rel=stylesheet>
</HEAD>
<BODY style="overflow:hidden; margin:2">
<script language="javascript" src="jscheck.js">
</script>
<script>
    <!--
    function tst(obj0,obj1,obj2){
        obj0.style.border="1 "+obj1+" solid";
        obj0.style.background=obj2;
    }
    //-->
</script>
<script>
	function loginBGPSet(){
		document.frmLgBGPSet.submit();
	}
	function loginBGPReset(){
		document.Jz_myform.seraction.value="serpreset";
		document.Jz_myform.submit();
	}
</script>
<SCRIPT LANGUAGE="JavaScript">
    <!--
    function textCounter(field, maxlimit) {
        if (field.value.length > maxlimit)
            field.value = field.value.substring(0, maxlimit);
    }
    //-->
</SCRIPT>
<TABLE align="center" class="border" cellSpacing="1" cellPadding="2" width="802px" border="0" style="margin-top:60;">
  <%
			{
				sysPro sPro = new sysPro();
				String strBGPath =sPro.getLoginbk();
				if(strBGPath == null || strBGPath.equals(""))
					strBGPath = "images/login/loginbk.jpg";				
%>
  <FORM name="Jz_myform" action="ser_syspara" method="post">
    <!--添加数据表单开始cs.jsp-->
    <TR class=tdbg align="center">
      <TD width="151" height="26">登录页背景</TD>
      <TD width="235" height="26"><p >
          <input type="button" value=" 自定义 " name="btnPSet" onClick="loginBGPSet();">
        </p></TD>
      <TD height="26"><input type="button" value=" 恢复默认值 " name="btnPReset" onClick="loginBGPReset();"></TD>
    </TR>
    <TR class=tdbg>
      <TD height="420" colspan="3" background="<%=strBGPath%>"></TD>
    </TR>
  </FORM>
  <FORM name="frmLgBGPSet" action="/btsm/sysLoginbkUpl.jsp" method="post">
  </FORM>
  <%
			}
%>
</TABLE>
</BODY>
</HTML>
